﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Productupload : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetTable();
        GridView1.DataBind();

    }
    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();

        dtbl1.Columns.Add("Dealer Name", typeof(string));
        dtbl1.Columns.Add("Product Code", typeof(string));
        dtbl1.Columns.Add("Category Code", typeof(string));
        dtbl1.Columns.Add("Product Name", typeof(string));
        dtbl1.Columns.Add("Cert", typeof(int));
        dtbl1.Columns.Add("Weight", typeof(string));
        dtbl1.Columns.Add("Rates", typeof(int));
        dtbl1.Columns.Add("Narration", typeof(string));
        dtbl1.Columns.Add("Pices", typeof(int));
        dtbl1.Columns.Add("Quality", typeof(string));


        dtbl1.Rows.Add("Guru","P00001", "CC00001", "Earrings", "00001", "45 Grams", 100.00, "Good Work", 2, "Normal");
        dtbl1.Rows.Add("Mani", "P00001", "CC00002", "Earrings", "00002", "45 Grams", 200.00, "Good Work", 3, "Normal");
        dtbl1.Rows.Add("Karthick", "P00002", "CC00001", "Earrings", "00003", "45 Grams", 300.00, "Good Work", 4, "Normal");
        dtbl1.Rows.Add("Suresh", "P00002", "CC00002", "Earrings", "00004", "45 Grams", 400.00, "Good Work", 1, "Normal");
        return dtbl1;
    }
}
